﻿using Cherry.Agile.Enterprise.Entity;
using Cherry.Agile.Framework.Query;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Cherry.Agile.Enterprise.Services.Interface
{
    [ServiceContract(Namespace = Unity.Namespace)]
    public interface ICategoryService
    {
        /// <summary>
        /// 获取字典类别
        /// </summary>
        /// <returns>字典类别集合</returns>
        [OperationContract]
        List<Category> SyncCategory();

        /// <summary>
        /// 获取键类型列表
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        List<Category> GetCategory();

        /// <summary>
        /// 根据类型名获取键类型列表
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        List<Category> GetCategoryByName(string CateName, Pagination paging);

        /// <summary>
        /// 根据id获取键类型
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        Category GetCategoryByID(int CateID);
    }
}
